<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="java.util.List" %>
<%@ page import="com.alibaba.druid.util.StringUtils" %>
<%@ page import="com.timeDeal.bean.*" %>
<%--
  Created by IntelliJ IDEA.
  User: 叼爸爸
  Date: 2016/9/12
  Time: 19:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../inc/shijianchushoutop.jsp"%>
<%
    PageList pagelist =(PageList) request.getAttribute("pageList") ;
    int currentpage = pagelist.getCurrentpage() ;
%>
<div class="row">
    <div class="col-xs-12 hehe">
        <table class="table">
            <tr  style="margin-right: 200px">
            <tr  style="margin-right: 200px">
                 <th><h2>您的交易请求信息如下</h2></th>
                        </tr>
            </tr>
            <tr  style="margin-right: 200px">
                <th  style="float:left" >需求名称</th>
                <th  style="float:left" >请求人</th>
                <th  style="float:left" >操作</th>
            </tr>
            <%
                if(pagelist!=null){
                    List<Object> list = pagelist.getList();
                    for(int i=0;i<list.size();i++){
                        JiaoyiQingqiuBean jiaoyiQingqiuBean=(JiaoyiQingqiuBean)list.get(i);
                        %>
            <tr  style="margin-right: 200px">
                <td><a href="<%=ctxpath%>/user/shijianchushou/shijiandetail.jsp?id=<%=jiaoyiQingqiuBean.getShijianchushouid()%>" >
                    <%=jiaoyiQingqiuBean.getShijianchushouBean().getShijianchushoumingcheng()%>
                </a>
                </td>
                <td style="float:left">
                    <%=jiaoyiQingqiuBean.getTijiaoren().getYonghuming()%>
                </td>
                <td style="float:left">
                <%if(!(jiaoyiQingqiuBean.getTijiaoren().getYonghuid()==loginuser.getYonghuid())){%>
                <th><a href="<%=ctxpath%>/user/tongyi?id=<%=jiaoyiQingqiuBean.getJiaoyiqingqiuid()%>&currentpage=<%=currentpage%>&szl=t&falg=1" style="margin-right: 50px" >同意</a>
                    <a href="<%=ctxpath%>/user/tongyi?id=<%=jiaoyiQingqiuBean.getJiaoyiqingqiuid()%>&currentpage=<%=currentpage%>&szl=f&falg=1">拒绝</a></th>
                </td>
                <%} else {%>
                  <td>未处理</td>
                <%}%>
            </tr>
            <% }}%>
        </table>-
        <%
            for(int i=0;i<pagelist.getTotalpage();i++){
        %>
        <a    href="<%=ctxpath%>/user/jiaoyiqingqiugg.jsp?flag=1&currentpage=<%=i+1%>"  class=" btn"  ><%=i+1%></a>
        <%}%>
    </div>
</div>
<input id="currentpage" name="currentpage" value="${pageList.currentpage}"></input>


<%@ include file="../../inc/bottom.jsp"%>